<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "user_info".
 *
 * @property integer $user_id
 * @property string $image
 * @property string $name
 * @property integer $rank
 * @property string $phone
 * @property string $passwd
 * @property string $in_club
 * @property string $ts
 * @property integer $status
 */
class UserInfo extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'user_info';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['rank', 'status'], 'integer'],
            [['ts'], 'safe'],
            [['image'], 'string', 'max' => 512],
            [['name'], 'string', 'max' => 12],
            [['phone'], 'string', 'max' => 14],
            [['passwd', 'in_club'], 'string', 'max' => 128],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'user_id' => '用户id',
            'image' => '用户头像',
            'name' => '用户昵称',
            'rank' => '用户等级',
            'phone' => '手机',
            'passwd' => '密码',
            'in_club' => '所在俱乐部',
            'ts' => 'Ts',
            'status' => '状态',
        ];
    }
}
